package de.tum.in.eist.poll.shared.beans;

import java.util.ArrayList;
import java.util.TreeSet;


public class Lecturer extends User {
	/**
	 * lectures belonging to this lecturer
	 */
	private ArrayList<Lecture> lectures;
	
	/**
	 * students belonging to this lecturer
	 */
	private TreeSet<Student> students;
	
	public Lecturer (String name, String password, ArrayList<Lecture> lectures,
			TreeSet<Student> students) {
		super(name, password);
		this.setLectures(lectures);
		this.setStudents(students);
	}

	/**
	 * @return the students
	 */
	public TreeSet<Student> getStudents() {
		return students;
	}

	/**
	 * @param students the students to set
	 */
	private void setStudents(TreeSet<Student> students) {
		this.students = students;
	}

	/**
	 * @return the lectures
	 */
	public ArrayList<Lecture> getLectures() {
		return lectures;
	}

	/**
	 * @param lectures the lectures to set
	 */
	private void setLectures(ArrayList<Lecture> lectures) {
		this.lectures = lectures;
	}
}
